package com.hrm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class EmpVacation {
    private Integer vacationReqId;

    private Integer empId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date submitTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    private String reason;

    private Integer reasonType;

    private Integer vacationTime;

    private String reqStatus;

    public Integer getVacationReqId() {
        return vacationReqId;
    }

    public void setVacationReqId(Integer vacationReqId) {
        this.vacationReqId = vacationReqId;
    }

    public Integer getEmpId() {
        return empId;
    }

    public void setEmpId(Integer empId) {
        this.empId = empId;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason == null ? null : reason.trim();
    }

    public Integer getReasonType() {
        return reasonType;
    }

    public void setReasonType(Integer reasonType) {
        this.reasonType = reasonType;
    }

    public Integer getVacationTime() {
        return vacationTime;
    }

    public void setVacationTime(Integer vacationTime) {
        this.vacationTime = vacationTime;
    }

    public String getReqStatus() {
        return reqStatus;
    }

    public void setReqStatus(String reqStatus) {
        this.reqStatus = reqStatus == null ? null : reqStatus.trim();
    }
}